<template>
  <view class="container clearfix">
    <view class="content">
      <image class="logo" src="/static/logo.png"></image>
      <view class="text-area">
        <text class="title">{{title}}</text>
      </view>
    </view>
    <view class="login">
      <view class="logout-btn" @click="login">
        <image class="icon" src="/static/channel/wechat.png"></image>
        <text class="title">立即登录</text>
      </view>
    </view>
  </view>
</template>

<script>
  import Config from '@/core/config'
  export default {
    data() {
      return {
        title: '万太生活馆'
      }
    },
    onLoad() {
      
    },
    methods: {
      login() {
        Config.loginWx()
      },
    }
  }
</script>

<style lang="scss" scoped>
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .logo {
      height: 200rpx;
      width: 200rpx;
      margin-top: 200rpx;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 30rpx;
    }

    .text-area {
      display: flex;
      justify-content: center;
    }

    .title {
      font-size: 36rpx;
      color: #8f8f94;
    }
  }

  .login {
    display: flex;
    justify-content: center;
    margin: 100rpx auto;

    .logout-btn {
      width: 60%;
      margin: 0 auto;
      font-size: 28rpx;
      color: #616161;
      border-radius: 20rpx;
      border: 1px solid #dcdcdc;
      padding: 16rpx 0;
      text-align: center;
      display: flex;
      justify-content: center;

      .icon {
        width: 38rpx;
        height: 38rpx;
        margin-right: 15rpx;
      }

      .title {
        font-size: 28rpx;
        color: #666666;
      }
    }
  }
</style>